package JavaMultiThreadProgramming.Ch1;

/**
 * Created by wyao on 17-3-3.
 */
public class T004_threadOrder {
    public static void main(String[] args) {

        Mythread4 mt1 = new Mythread4(1);
        Mythread4 mt2 = new Mythread4(2);
        Mythread4 mt3 = new Mythread4(3);
        Mythread4 mt4 = new Mythread4(4);
        Mythread4 mt5 = new Mythread4(5);
        Mythread4 mt6 = new Mythread4(6);
        Mythread4 mt7 = new Mythread4(7);
        Mythread4 mt8 = new Mythread4(8);
        Mythread4 mt9 = new Mythread4(9);
        Mythread4 mt11 = new Mythread4(11);
        Mythread4 mt21 = new Mythread4(21);
        Mythread4 mt31 = new Mythread4(31);
        Mythread4 mt41 = new Mythread4(41);
        Mythread4 mt51 = new Mythread4(51);
        Mythread4 mt61 = new Mythread4(61);
        Mythread4 mt71 = new Mythread4(71);
        Mythread4 mt81 = new Mythread4(81);
        Mythread4 mt91 = new Mythread4(91);
        mt1.start();
        mt2.start();
        mt3.start();
        mt4.start();
        mt5.start();
        mt6.start();
        mt7.start();
        mt8.start();
        mt9.start();
        mt11.start();
        mt21.start();
        mt31.start();
        mt41.start();
        mt51.start();
        mt61.start();
        mt71.start();
        mt81.start();
        mt91.start();
    }
}

class Mythread4 extends Thread {
    private int i;

    public Mythread4(int i) {
        this.i = i;
    }

    public void run() {
        System.out.println(i);
    }
}